package com.ruoyi.exhibition.mapper;

import java.util.List;

import com.ruoyi.artworks.domain.Artworks;
import com.ruoyi.course.domain.CourseCla;
import com.ruoyi.courseManagement.domain.Course;
import com.ruoyi.exhibition.dao.ClaStuDao;
import com.ruoyi.exhibition.domain.ExhiForm;
import com.ruoyi.exhibition.domain.Exhibition;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.dom4j.CDATA;

/**
 * 投票管理Mapper接口
 * 
 * @author hyl
 * @date 2025-06-20
 */
@Mapper
public interface ExhibitionMapper 
{
    /**
     * 查询投票管理
     * 
     * @param exhId 投票管理主键
     * @return 投票管理
     */
    public Exhibition selectExhibitionByExhId(Long exhId);

    /**
     * 查询投票管理列表
     * 
     * @param exhibition 投票管理
     * @return 投票管理集合
     */
    public List<Exhibition> selectExhibitionList(Exhibition exhibition);

    /**
     * 新增投票管理
     * 
     * @param exhibition 投票管理
     * @return 结果
     */
    public int insertExhibition(Exhibition exhibition);

    /**
     * 修改投票管理
     * 
     * @param exhibition 投票管理
     * @return 结果
     */
    public int updateExhibition(Exhibition exhibition);

    /**
     * 删除投票管理
     * 
     * @param exhId 投票管理主键
     * @return 结果
     */
    public int deleteExhibitionByExhId(Long exhId);

    /**
     * 批量删除投票管理
     * 
     * @param exhIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteExhibitionByExhIds(Long[] exhIds);

    public List<CourseCla> selectAllClass(CourseCla courseCla);

    public List<ClaStuDao> selectAllStudent(ClaStuDao claStuDao);

    public List<Artworks> selectAllWorks(Artworks artworks);


    public int insertWorks( List<ExhiForm> exhiForm);

    public List<Integer> countFormPeople(@Param("exhId") long exhId);

    public int updateSum(@Param("sum") int sum, @Param("exhId") long exhId);

}
